package com.sky.proxy.cglibProxy;

/**
 * @author : wushikai
 * <p>
 * date : 2022-03-09
 * 这个实现类只是实现自己的东西, 其他什么都没干;
 */
class MerchantServiceImpl {

    Merchant findByMerchantName(String name) {
        String sql = "select  *  from  t_merchant tt where tt.name = " + name;
        System.out.println(  "findByMerchantName ==>  " + sql);
        return new Merchant( 1,   name );
    }

    Merchant findByMerchantId(Integer id ) {

        String sql = "select  *  from  t_merchant tt where tt.id = " + id;
        System.out.println(  "findByMerchantId ==>  " + sql);
        return new Merchant( id,   "广西卡海网络" );
    }

}

